# frozen_string_literal: true
begin
  require 'vagrant'
rescue LoadError
  raise 'The vagrant-luccych-helloworld plugin must be run within vagrant.'
end


require_relative "helloworld/version"

module Vagrant
  module Luccych
    module HelloWorld
      class Error < StandardError; end

      class HelloWorldPlugin < Vagrant.plugin("2")
        name "HelloWorldPlugin"
        puts "HelloWorldPlugin Class"
        config 'helloworld' do
          require_relative 'helloworld/config'
          Config
        end
        command "helloworld" do
          puts "HelloWorldPlugin Class command"
          require_relative "helloworld/command"
          Command
        end
      end
    end
  end
end
